package com.glls.common.enums;

import lombok.Getter;


@Getter
public enum ResultCodeEnum {
    //枚举值
    SUCCESS(true,"操作成功",200),
    UNKNOWN_REASON(false,"操作失败",999),
    BAD_SQL_GRAMMAR(false,"sql语法错误",520),
    ERROR(false,"操作失败",444),
    PASSWORD_ERROR(false,"密码错误",448),
    ACCESS_DENIED(false,"无权限访问",449),
    UNKNOW_RESAON(false,"未知错误",999);


    private Boolean success;
    private String message;
    private Integer code;

    ResultCodeEnum(Boolean success, String message, Integer code) {
        this.success = success;
        this.message = message;
        this.code = code;
    }


}
